package myservlet;

public class Credential {
	private String username;
	private String password;

	public Credential(String username, String password){
		this.username = username;
		this.password = password;
	}
	
	public boolean IsCorrect()
	{
		if (username.equals("dummy") && password.equals("foobar"))
			return true;
		else
			return false;
	}
	
	public String GetUserName()
	{
		return this.username;
	}
}
